package com.zzptc.shop.dao;

import com.zzptc.shop.vo.VO;

import java.sql.SQLException;
import java.util.List;

public interface IDAO {
       //增删改查的方法  适用登陆、商品、订单等模块
        boolean insert(VO vo)throws SQLException;
       //获取所以
        List getAll() throws SQLException;
       //根据ID删除记录
        boolean deleteByID(VO vo) throws SQLException;
        //更新记录
        boolean update(VO vo)throws SQLException;
       //根据ID查询数据
        VO getByID(VO vo)throws SQLException;
}
